package com.sweet.mealon.face.daily.lock.reentrantlock;

import lombok.AllArgsConstructor;

import java.util.HashMap;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantReadWriteLock;

/**
 * @author: crazier.huang
 * @project: faceDaily
 * @date: 2021/4/29 星期四
 * @desc:
 */
@AllArgsConstructor
public class ReentrantWriteThread implements Runnable {

    private ReentrantReadWrite rw;
    private String name;

    public void run() {
        rw.put(name,"1");
    }
}
